package cn.wolfcode.luowowo.search.service.impl;

import cn.wolfcode.luowowo.search.repositoty.UserInfoTemplateRepository;
import cn.wolfcode.luowowo.search.service.IUserInfoTemplateSearchService;
import cn.wolfcode.luowowo.search.template.UserInfoTemplate;
import com.alibaba.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;
@Service
public class UserInfoTemplateSearchServiceImpl implements IUserInfoTemplateSearchService {

    @Autowired
    private UserInfoTemplateRepository userInfoTemplateRepository;


    @Override
    public void saveOrUpdate(UserInfoTemplate template) {
        userInfoTemplateRepository.save(template);
    }

    @Override
    public List<UserInfoTemplate> findByDestName(String name) {
        return userInfoTemplateRepository.findByDestName(name);
    }
}
